package com.google.code.coma.rmi;

import com.google.code.coma.Coma;
import com.google.code.coma.rmi.storage.StorageService;

import java.util.ArrayList;
import java.util.List;

/**
 */
public class ServerLauncher {
    private static final List<StorageService> storageServices = new ArrayList<StorageService>();
    public static void main(String... args) {
        System.out.println("Starting RMI storage services...");
        for (String arg : args) {
            System.out.println("...for factory " + arg);
            storageServices.add(RMIManager.getStorageService(arg + "_" + Coma.PARTS_CONTAINER));
            storageServices.add(RMIManager.getStorageService(arg + "_" + Coma.COMPUTER_CONTAINER));
            storageServices.add(RMIManager.getStorageService(arg + "_" + Coma.ORDER_CONTAINER));
        }
    }
}
